﻿using TMPro;
using UnityEngine;

namespace Yoozoo.Gameplay.RTS
{
    public class WonderNpcHudLod : MonsterHudLod0
    {
        public SpriteRenderer Team;

        private int _team = -1;
        public void SetTeam(int team)
        {
            if (team != _team)
            {
                _team = team;
                string name;
                if (team == 0)
                {
                    name = "img_map_kind03";
                }
                else
                {
                    name = "img_map_kind04";
                }
                ArmyManager.Instance.ResourceManager.SetWorldmapAtlasIcon(name, LevelBg);
            }
        }
    }
}
